/*
 * Copyright [2022] [https://www.xiaonuo.vip]
 *
 * Snowy采用APACHE LICENSE 2.0开源协议，您在使用过程中，需要注意以下几点：
 *
 * 1.请不要删除和修改根目录下的LICENSE文件。
 * 2.请不要删除和修改Snowy源码头部的版权声明。
 * 3.本项目代码可免费商业使用，商业使用请保留源码和相关描述文件的项目出处，作者声明等。
 * 4.分发源码时候，请注明软件出处 https://www.xiaonuo.vip
 * 5.不可二次分发开源参与同类竞品，如有想法可联系团队xiaonuobase@qq.com商议合作。
 * 6.若您的项目无法满足以上几点，需要更多功能代码，获取Snowy商业授权许可，请在官网购买授权，地址为 https://www.xiaonuo.vip
 */
package vip.xiaonuo.biz.modular.goods.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import vip.xiaonuo.common.pojo.CommonEntity;

import java.util.Date;

/**
 * 物品台账实体
 *
 * @author 古月墨塵
 * @date 2022/11/26 11:24
 **/
@Getter
@Setter
@TableName("BIZ_GOODS_LEDGER")
public class BizGoodsLedger extends CommonEntity {

    /**
     * ID
     */
    @TableId
    @ApiModelProperty(value = "ID", position = 1)
    private String id;

    /** api日志ID */
    @ApiModelProperty(value = "api日志ID", position = 2)
    private String apiLogId;

    /**
     * 台账类型 0-首次入库 1-取用 2-维修 3-报废
     */
    @ApiModelProperty(value = "台账类型 0-首次入库 1-启用 2-维修 3-报废 10-取用", position = 2)
    private Integer ledgerType;

    /**
     * 物品ID
     */
    @ApiModelProperty(value = "物品ID", position = 3)
    private String goodsId;

    /**
     * 当前柜组ID
     */
    @ApiModelProperty(value = "当前柜组ID", position = 4)
    private String curCabinetGroupId;

    /**
     * 当前柜子ID
     */
    @ApiModelProperty(value = "当前柜子ID", position = 5)
    private String curCabinetId;

    /**
     * 当前柜门ID
     */
    @ApiModelProperty(value = "当前柜门ID", position = 6)
    private String curCabinetDoorId;

    /**
     * 出库时间
     */
    @ApiModelProperty(value = "出库时间", position = 7)
    private Date deliveryTime;

    /**
     * 出库人
     */
    @ApiModelProperty(value = "出库人", position = 8)
    private String deliveryUserId;

    /**
     * 归还时间
     */
    @ApiModelProperty(value = "归还时间", position = 7)
    private Date returnTime;

    /**
     * api日志ID（入库）
     */
    @ApiModelProperty(value = "api日志ID（入库）", position = 9)
    private String retApiId;

    /**
     * 入库柜组ID
     */
    @ApiModelProperty(value = "入库柜组ID", position = 4)
    private String retCabinetGroupId;

    /**
     * 入库柜子ID
     */
    @ApiModelProperty(value = "入库柜子ID", position = 5)
    private String retCabinetId;

    /**
     * 入库柜门ID
     */
    @ApiModelProperty(value = "入库柜门ID", position = 6)
    private String retCabinetDoorId;

    /**
     * 入库时间
     */
    @ApiModelProperty(value = "入库时间", position = 9)
    private Date warehouseTime;

    /**
     * 入库人
     */
    @ApiModelProperty(value = "入库人", position = 10)
    private String warehouseUserId;

    /**
     * 领用检查时间
     */
    @ApiModelProperty(value = "领用检查时间", position = 11)
    private Date collectionInspectionTime;

    /**
     * 借后检查时间间隔（分钟）
     */
    @ApiModelProperty(value = "借后检查时间间隔（分钟）", position = 12)
    private String collectionInspectionInterval;

    /**
     * 归还检查时间
     */
    @ApiModelProperty(value = "归还检查时间", position = 13)
    private Date returnInspectionTime;

    /**
     * 还前检查时间间隔（分钟）
     */
    @ApiModelProperty(value = "还前检查时间间隔（分钟）", position = 14)
    private String returnInspectionInterval;

    @ApiModelProperty(value = "归还标识 0-未归还 1-归还", position = 14)
    private Integer returnFlag;

    @ApiModelProperty(value = "用户借用，检查项确认 0-未确认 1-已确认", position = 15)
    private Boolean userBorrowCheckConfirmed;

    @ApiModelProperty(value = "用户归还，检查项确认 0-未确认 1-已确认", position = 16)
    private Boolean userReturnCheckConfirmed;

    @ApiModelProperty(value = "试剂取出称重api日志ID")
    private String reagentOutApiId;

    @ApiModelProperty(value = "试剂取出重量")
    private String reagentOutWeight;

    @ApiModelProperty(value = "试剂取出容量")
    private String reagentOutVolume;

    @ApiModelProperty(value = "试剂存入称重api日志ID")
    private String reagentRetApiId;

    @ApiModelProperty(value = "试剂归还重量")
    private String reagentRetWeight;

    @ApiModelProperty(value = "试剂归还容量")
    private String reagentRetVolume;

    @ApiModelProperty(value = "试剂使用重量")
    private String reagentUseWeight;

    @ApiModelProperty(value = "试剂使用容量")
    private String reagentUseVolume;
}
